import React from 'react'
import { Link } from 'react-router-dom'
import { Route, Routes, Navigate } from 'react-router';
import { EpicScreen } from 'screens/epic';
import { KanbanScreen } from 'screens/kanban';

export function ProjectScreen() {
  return <div>
    <Link to={'kanban'}>看板</Link>
    <Link to={'epic'}>任务组</Link>
    <Routes>
      <Route path='/kanban' element={<KanbanScreen/>} />
      <Route path='/epic' element={<EpicScreen/>} />
      <Route path="*" element={<Navigate to={window.location.pathname + '/kanban'} replace={true}/>}/>
    </Routes>
  </div>
}